from Config import db
from model.note import Note
from model.user import User


def registerUser(username, password, email):
    """
    注册一个普通用户
    :param username:用户名
    :param password:用户密码
    :param email:用户邮件
    :return:None
    """
    user = User(username, password, email)
    db.session.add(user)
    db.session.commit()
